package com.zzyl.nursing.job;

import com.zzyl.nursing.service.member.IMemberReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 预约自动过期
 *
 * @author makangkang
 * @date 2025/10/28 21:31
 */
@Slf4j
@Component
public class MemberReservationJob {

    @Autowired
    private IMemberReservationService memberReservationService;


    /**
     * 预约自动过期
     */
    public void memberReservationFilter() {
        boolean flag = memberReservationService.memberReservationExpiration();
        if (flag) {
            log.info("参观预约自动过期成功");
        }
    }
}
